<template>
  <div>
      <mediate v-if="active == 0"></mediate>
    <van-tabbar v-model="active" @change="changeindex" fixed border>
      <van-tabbar-item icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item icon="search">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
import mediate from '@/views/home/mediate'
export default {
    components:{
        mediate
    },
  data() {
    return {
      active: 0,
    };
  },
  methods:{
     changeindex(val){
         console.log(val);
     }
  }
};
</script>
<style scoped>
</style>